<?php

namespace App\Http\Controllers\Web;

use App\Order;
use Illuminate\Http\Request;

class HomeController extends Controller
{


    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $list = Order::where('status',0)
            ->take(10)
            ->get();
        $cnt = Order::where('status',0)->count();
        $data = [
            'list'=>$list,
            'cnt'=>$cnt
        ];
        return view('web.home',$data);
    }
}
